{extend name="public/base" /}

{block name="title"}<title>列表</title>{/block}

{block name="pjax_container"}
<style>
   tr>th,
    td {
        text-align: center;
    }



    .content-header>.breadcrumb>li {
        color: #999;
    }

    .content-header>.breadcrumb>.active {
        color: #666;
    }

    .content-header {
        height: 51px;

    }

    .btn-primary {
        background-color: #1890FF;
        color: #fff;
        border: none;
        border-radius: 6px !important;
        margin-left: 15px;
        padding: 5px 10px;
    }

    .box-primary {
        border-top-color: #ecf0f5 !important;
        border-top-width: 16px;

    }

    .btn-primary:hover {
        background-color: #1890FF !important;
        color: #fff;
        border: none;
        opacity: .9;
        border-radius: 6px !important;
    }

    .delete-one {
        background-color: ff4141 !important;
        margin-left: 15px;
        border-radius: 6px;
    }

    .sreachs {
        background-color: #1890FF;
        color: #fff;
        border: none;
        border-radius: 6px !important;
        margin-left: 15px;
        padding: 7px 15px;
    }
</style>
<section class="content-header">
    <ol class="breadcrumb">
        <li>系统管理</li>
        <li class="active">权限列表</li>
    </ol>
</section>
<section class="content">
    <div class="row">
        <div class="col-md-12">
            <div class="box box-primary">
                <div class="box-header with-border">
                    <h3 class="box-title"></h3>
                    <div class="pull-left">
                        {:authAction(CONTROLLER_NAME.'/create','create')}
                    </div>
                </div>
                <div class="box-body table-responsive">
                    <table class="table table-bordered table-hover">
                        <tr>
                            <th>名称</th>
                            <th>排序值</th>
                            <th>导航显示</th>
                            <th>操作</th>
                        </tr>
                        {volist name="list" id="vo"}
                            {:getPermissionHtml($vo)}
                            {notempty name="vo.list"}
                                {volist name="vo.list" id="voOne"}
                                    {:getPermissionHtml($voOne,1)}
                                    {notempty name="voOne.list"}
                                        {volist name="voOne.list" id="voTwo"}
                                            {:getPermissionHtml($voTwo,2)}
                                        {/volist}
                                    {/notempty}
                                {/volist}
                            {/notempty}
                        {/volist}
                    </table>
                </div>
            </div>
        </div>
    </div>
</section>
{/block}